-- GENERATED SPELL FOR [Anvilrage Footman] --


function spell0_8892(pUnit, Event) --@Kick,n/a--
pUnit:FullCastSpellOnTarget(15614,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8892', 6303, 1)
end

function spell1_8892(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(15580,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8892', 626, 1)
end

function Sorts_8892(pUnit, Event)
local choix_sorts_8892 = math.random(0, 1)
if choix_sorts_8892 == 0 then
pUnit:RegisterEvent('spell0_8892', 1, 1)
end
if choix_sorts_8892 == 1 then
pUnit:RegisterEvent('spell1_8892', 1, 1)
end
end

function mob8892_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_8892', math.random(1500, 3000), 1)
end

function mob8892_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8892_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8892_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(8892, 1, 'mob8892_Action')
RegisterUnitEvent(8892, 2, 'mob8892_Leave')
RegisterUnitEvent(8892, 3, 'mob8892_Kill')
RegisterUnitEvent(8892, 4, 'mob8892_Die')
